package ace.module.product.core.impl.dao.model.bo;

import ace.cmp.data.spring.data.jdbc.querydsl.rsql.core.model.SaveContext;
import ace.cmp.data.spring.data.jdbc.querydsl.rsql.core.model.SaveListContext;
import ace.module.product.core.impl.dao.entity.PmsCommonGallery;
import ace.module.product.core.impl.dao.entity.PmsCommonTag;
import ace.module.product.core.impl.dao.entity.PmsCommonVideo;
import ace.module.product.core.impl.dao.entity.PmsProduct;
import ace.module.product.core.impl.dao.entity.PmsProductAttribute;
import ace.module.product.core.impl.dao.entity.PmsProductAttributeValue;
import ace.module.product.core.impl.dao.entity.PmsProductCategoryRelation;
import ace.module.product.core.impl.dao.entity.PmsProductDetail;
import ace.module.product.core.impl.dao.entity.PmsProductSku;
import ace.module.product.core.impl.dao.entity.PmsProductSkuAttributeValue;
import ace.module.product.core.impl.dao.entity.PmsProductStatistic;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * .
 * @author Caspar
 *
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class PmsProductSaveContextBo {

  @Schema(title = "商品基础数据")
  private SaveContext<PmsProduct> product;

  @Schema(title = "商品与分类关系")
  private SaveContext<PmsProductCategoryRelation> productCategoryRelation;

  @Schema(title = "商品主图")
  private SaveContext<PmsCommonGallery> productMainImage;

  @Schema(title = "商品主视频")
  private SaveContext<PmsCommonVideo> productMainVideo;

  @Schema(title = "商品相册")
  private SaveListContext<PmsCommonGallery> productGalleries;

  @Schema(title = "商品详情")
  private SaveListContext<PmsProductDetail> productDetails;

  @Schema(title = "商品标签")
  private SaveListContext<PmsCommonTag> productTags;

  @Schema(title = "商品统计")
  private SaveContext<PmsProductStatistic> productStatistic;

  @Schema(title = "商品规格属性")
  private SaveListContext<PmsProductAttribute> productAttributes;

  @Schema(title = "商品规格属性值")
  private SaveListContext<PmsProductAttributeValue> productAttributeValues;

  @Schema(title = "商品sku")
  private SaveListContext<PmsProductSku> productSkus;

  @Schema(title = "商品sku属性值")
  private SaveListContext<PmsProductSkuAttributeValue> productSkuAttributeValues;

  @Schema(title = "商品sku主图")
  private SaveListContext<PmsCommonGallery> productSkuMainImages;

  @Schema(title = "商品sku详情")
  private SaveListContext<PmsProductDetail> productSkuDetails;


}
